package cn.edu.sgu.www.mhxysy.entity;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.generator.UuidGenerator;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 账号表
 * @author heyunlin
 * @version 1.0
 */
@Data
@TableName("jsgl_zhb")
public class Account implements UuidGenerator, Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	private String id;

	/**
	 * 账号
	 */
	private String account;

	/**
	 * 安全手机
	 */
	private String phone;

	@Override
	public String uuid() {
		return IdentifierPrefixes.PREFIX_ACCOUNT + StringUtils.uuid();
	}

}